package com.ooqiu.gaming.view;

import android.content.Context;

import es.dmoral.toasty.Toasty;

/**
 * @author Eenie
 * @date 2017/11/27
 */

public class ToastUtil {


    private static Context mContext;
    private static Toasty sToasty;

    public static void init(Context context) {
        mContext = context;
    }


    public static void showSuccess(String msg) {
        Toasty.success(mContext, msg).show();
    }



    public static void showWarning(String msg) {
        Toasty.warning(mContext, msg).show();
    }


    public static void showError(String msg) {
        Toasty.error(mContext, msg).show();
    }

}
